import Rules from './Rules';

const { COMMON_RULE, LENGTH_RULE, NUMBER_RULE } = Rules;

export const offerRules = {
  detail: {
    model: COMMON_RULE().concat(LENGTH_RULE(0, 100)),
    configuration: COMMON_RULE().concat(LENGTH_RULE(0, 100)),
    deliveryDate: COMMON_RULE({ type: 'number' }),
    tax: COMMON_RULE({ type: 'number' }),
  },
  unitPriceWithTax: COMMON_RULE().concat(NUMBER_RULE),
  combinedPrice: COMMON_RULE().concat(NUMBER_RULE),
};
